package com.ruoyi.attendance.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤管理对象 attendance
 * 
 * @author ruoyi
 * @date 2024-07-02
 */
public class Attendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 员工编号 */
    private Long employeeId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String employeeName;

    /** 上下班时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上下班时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date worktime;

    /** 有效出勤次数 */
    @Excel(name = "有效出勤次数")
    private Long attendance;

    /** 请假次数 */
    @Excel(name = "请假次数")
    private Long leaveJob;

    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }
    public void setEmployeeName(String employeeName) 
    {
        this.employeeName = employeeName;
    }

    public String getEmployeeName() 
    {
        return employeeName;
    }
    public void setWorktime(Date worktime) 
    {
        this.worktime = worktime;
    }

    public Date getWorktime() 
    {
        return worktime;
    }
    public void setAttendance(Long attendance) 
    {
        this.attendance = attendance;
    }

    public Long getAttendance() 
    {
        return attendance;
    }
    public void setLeaveJob(Long leaveJob) 
    {
        this.leaveJob = leaveJob;
    }

    public Long getLeaveJob() 
    {
        return leaveJob;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("employeeId", getEmployeeId())
            .append("employeeName", getEmployeeName())
            .append("worktime", getWorktime())
            .append("attendance", getAttendance())
            .append("leaveJob", getLeaveJob())
            .toString();
    }
}
